(function(){
    'use strict';
    const heads = document.getElementsByTagName('head')
    let head
    if (heads && heads.length) {
        head = heads[0]
    } else {
        head = document.body
    }
    const script = document.createElement('script')

    script.type = 'text/javascript'
    script.src = 'http://api.tianditu.gov.cn/api?v=4.0&tk=41252f44578a99fda1a999538d537df3'
    head.appendChild(script)
    console.log(head);
})()
